package com.sumainfor.zuul.service;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.zuul.dao.SysUserListMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.sql.SQLOutput;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 获取系统用户的名字和联系方式
 * <p>
 *
 * @author: zhoucong
 * @create: 2019-04-16 16:52
 **/
@Service
public class SysUserListService  implements Serializable {

    @Autowired
    SysUserListMapper sysUserListMapper;

     public JsonResult getLoginName(Map<String,Object> params){
         System.out.println("棘手的参数"+params);
         JsonResult result = new JsonResult();
         List<Map<String,Object>> zczs = sysUserListMapper.getLoginName(params);
         System.out.println("返回的数据"+zczs);
         return result.put(sysUserListMapper.getLoginName(params));
     }

     public JsonResult getSystemUser(Map<String,Object> params){
         JsonResult result = new JsonResult();
         Map<String,Object> getSystemUser = sysUserListMapper.getSystemUser(params);
         return result.put(getSystemUser);
     }
}
